package com.pinoc.demo.exception;

import lombok.Getter;

/**
 * @author: yinpeng10
 */
@Getter
public class ApiException extends RuntimeException {

	private int code;

	private String messge;

	public ApiException() {
		this(-50, "接口错误");
	}

	public ApiException(String messge) {
		this(-50, messge);
	}

	public ApiException(int code, String messge) {
		super(messge);
		this.code = code;
		this.messge = messge;
	}

}
